<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
      <link rel="stylesheet" href="./../helpwin.css">
      <title>MATLAB File Help: prtRvMixture</title>
   </head>
   <body>
      <!--Single-page help-->
      <table border="0" cellspacing="0" width="100%">
         <tr class="subheader">
            <td class="headertitle">MATLAB File Help: prtRvMixture</td>
            
            
         </tr>
      </table>
      <div class="title">prtRvMixture</div>
      <div class="helptext"><pre><!--helptext -->  <span class="helptopic">prtRvMixture</span>  Mixture Random Variable
 
    RV = <span class="helptopic">prtRvMixture</span> creates a <span class="helptopic">prtRvMixture</span> object with empty
    mixingProportions and components. These parameters can be set
    manually or by calling the MLE method.     
 
    The <span class="helptopic">prtRvMixture</span> class is used to implement mixtures of prtRvs. The
    base prtRv object must implement the weightedMle() method.
 
    RV = <span class="helptopic">prtRvMixture</span>(PROPERTY1, VALUE1,...) creates a <span class="helptopic">prtRvMixture</span>
    object RV with properties as specified by PROPERTY/VALUE pairs.
 
    A <span class="helptopic">prtRvMixture</span> object inherits all properties from the prtRv class.
    In addition, it has the following properties:
 
    components        - A vector of prtRv objects. The length of the
                        array specifies the number of components in the
                        mixture. The component RV objects must all have
                        the same dimensionality.
    mixingProportions - A discrete probability vector, representing the
                        probability of each component in the mixture.
 
   A <span class="helptopic">prtRvMixture</span> object inherits all methods from the prtRv class.
   The MLE method can be used to estimate the distribution parameters
   from data.
 
   Examples:
        ds = prtDataGenOldFaithful;      % Load a data set
   
        % Create a <span class="helptopic">prtRvMixture</span> object consistig of 2 multivariate
        % normal objects
        rv = <span class="helptopic">prtRvMixture</span>('components',repmat(prtRvMvn,1,2));
 
        rv = mle(rv,ds);                 % Compute the ML estimate
        plotPdf(rv);                     % Plot the estimated PDF
        hold on;
        plot(ds);                        % Overlay the original data</pre></div><!--after help --><!--seeAlso--><div class="footerlinktitle">See also</div><div class="footerlink"> <a href="./prtRv.html">prtRv</a>, <a href="./prtRvMvn.html">prtRvMvn</a>, <a href="./prtRvGmm.html">prtRvGmm</a>, <a href="./prtRvMultinomial.html">prtRvMultinomial</a>,
    <a href="./prtRvUniform.html">prtRvUniform</a>, <a href="./prtRvUniformImproper.html">prtRvUniformImproper</a>, <a href="./prtRvVq.html">prtRvVq</a>
</div>
      <!--Class-->
      <div class="sectiontitle">Class Details</div>
      <table class="class-details">
         <tr>
            <td class="class-detail-label">Superclasses</td>
            <td><a href="./prtRv.html">prtRv</a></td>
         </tr>
         <tr>
            <td class="class-detail-label">Sealed</td>
            <td>false</td>
         </tr>
         <tr>
            <td class="class-detail-label">Construct on load</td>
            <td>false</td>
         </tr>
      </table>
      <!--Constructors-->
      <div class="sectiontitle"><a name="constructors"></a>Constructor Summary
      </div>
      <table class="summary-list">
         <tr class="summary-item">
            <td class="name"><a href="./prtRvMixture/prtRvMixture.html">prtRvMixture</a></td>
            <td class="m-help">Mixture Random Variable&nbsp;</td>
         </tr>
      </table>
      <!--Properties-->
      <div class="sectiontitle"><a name="properties"></a>Property Summary
      </div>
      <table class="summary-list">
         <tr class="summary-item">
            <td class="name"><a href="./prtRvMixture/components.html">components</a></td>
            <td class="m-help">A vector of the components&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="name"><a href="./prtRvMixture/dataSet.html">dataSet</a></td>
            <td class="m-help">The training prtDataSet, only stored if verboseStorage is true. &nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="name"><a href="./prtRvMixture/dataSetSummary.html">dataSetSummary</a></td>
            <td class="m-help">Structure that summarizes prtDataSet.&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="name"><a href="./prtRvMixture/isCrossValidateValid.html">isCrossValidateValid</a></td>
            <td class="m-help">&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="name"><a href="./prtRvMixture/isSupervised.html">isSupervised</a></td>
            <td class="m-help">&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="name"><a href="./prtRvMixture/isTrained.html">isTrained</a></td>
            <td class="m-help">Indicates if prtAction object has been trained.&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="name"><a href="./prtRvMixture/minimumComponentMembership.html">minimumComponentMembership</a></td>
            <td class="m-help">&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="name"><a href="./prtRvMixture/mixingProportions.html">mixingProportions</a></td>
            <td class="m-help">The mixing proportions&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="name"><a href="./prtRvMixture/nComponents.html">nComponents</a></td>
            <td class="m-help">The number of components&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="name"><a href="./prtRvMixture/name.html">name</a></td>
            <td class="m-help">&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="name"><a href="./prtRvMixture/nameAbbreviation.html">nameAbbreviation</a></td>
            <td class="m-help">&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="name"><a href="./prtRvMixture/plotOptions.html">plotOptions</a></td>
            <td class="m-help">&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="name"><a href="./prtRvMixture/showProgressBar.html">showProgressBar</a></td>
            <td class="m-help">&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="name"><a href="./prtRvMixture/userData.html">userData</a></td>
            <td class="m-help">User specified data&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="name"><a href="./prtRvMixture/verboseStorage.html">verboseStorage</a></td>
            <td class="m-help">Specifies whether or not to store the training prtDataset.&nbsp;</td>
         </tr>
      </table>
      <!--Methods-->
      <div class="sectiontitle"><a name="methods"></a>Method Summary
      </div>
      <table class="summary-list">
         <tr class="summary-item">
            <td class="attributes">
               &nbsp;
               
            </td>
            <td class="name"><a href="./prtRvMixture/cdf.html">cdf</a></td>
            <td class="m-help">Output the cdf of the random variable evaluated at the points specified&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="attributes">
               &nbsp;
               
            </td>
            <td class="name"><a href="./prtRvMixture/crossValidate.html">crossValidate</a></td>
            <td class="m-help">Cross validate prtAction using prtDataSet and cross validation keys.&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="attributes">
               &nbsp;
               
            </td>
            <td class="name"><a href="./prtRvMixture/draw.html">draw</a></td>
            <td class="m-help">Draw random samples from the distribution described by the prtRv object&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="attributes">
               &nbsp;
               
            </td>
            <td class="name"><a href="./prtRvMixture/get.html">get</a></td>
            <td class="m-help">get the object properties&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="attributes">
               &nbsp;
               
            </td>
            <td class="name"><a href="./prtRvMixture/kfolds.html">kfolds</a></td>
            <td class="m-help">Perform K-folds cross-validation of prtAction&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="attributes">
               &nbsp;
               
            </td>
            <td class="name"><a href="./prtRvMixture/logPdf.html">logPdf</a></td>
            <td class="m-help">Output the log pdf of the random variable evaluated at the points specified&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="attributes">
               &nbsp;
               
            </td>
            <td class="name"><a href="./prtRvMixture/mle.html">mle</a></td>
            <td class="m-help">Compute the maximum likelihood estimate &nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="attributes">
               &nbsp;
               
            </td>
            <td class="name"><a href="./prtRvMixture/optimize.html">optimize</a></td>
            <td class="m-help">Optimize action parameter by exhaustive function maximization.&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="attributes">
               &nbsp;
               
            </td>
            <td class="name"><a href="./prtRvMixture/pdf.html">pdf</a></td>
            <td class="m-help">Output the pdf of the random variable evaluated at the points specified&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="attributes">
               &nbsp;
               
            </td>
            <td class="name"><a href="./prtRvMixture/plotCdf.html">plotCdf</a></td>
            <td class="m-help">Plot the cdf of the prtRv&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="attributes">
               &nbsp;
               
            </td>
            <td class="name"><a href="./prtRvMixture/plotLogPdf.html">plotLogPdf</a></td>
            <td class="m-help">Plot the pdf of the prtRv&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="attributes">
               &nbsp;
               
            </td>
            <td class="name"><a href="./prtRvMixture/plotPdf.html">plotPdf</a></td>
            <td class="m-help">Plot the pdf of the prtRv&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="attributes">
               &nbsp;
               
            </td>
            <td class="name"><a href="./prtRvMixture/run.html">run</a></td>
            <td class="m-help">Run a prtAction object on a prtDataSet object.&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="attributes">
               &nbsp;
               
            </td>
            <td class="name"><a href="./prtRvMixture/set.html">set</a></td>
            <td class="m-help">set the object properties&nbsp;</td>
         </tr>
         <tr class="summary-item">
            <td class="attributes">
               &nbsp;
               
            </td>
            <td class="name"><a href="./prtRvMixture/train.html">train</a></td>
            <td class="m-help">Train a prtAction object using training a prtDataSet object.&nbsp;</td>
         </tr>
      </table>
   </body>
</html>